/*
 * list.h
 *
 *  Created on: 2011-9-26
 *      Author: luxiao
 */

#ifndef LIST_H_
#define LIST_H_

typedef struct listNode
{
	struct listNode * pre;
	struct listNode * next;
	void * value;
} listNode;

typedef struct list
{
	listNode * head;
	listNode * tail;
	int len;
}list;

list * listCreate(void);
void listRelease(list *list);
list *listAddNodeHead(list *list, void *value);
list *listAddNodeTail(list *list, void *value);
#endif /* LIST_H_ */
